package com.gulimall.auth.feign;

import com.common.to.OAuthResTo;
import com.common.to.UserLoginTo;
import com.common.to.UserRegTo;
import com.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author Rookie-6688
 * @Description
 * @Create 2021-04-22 11:21
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegTo userRegTo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginTo userRegTo);

    @PostMapping("/member/member/OAuth/login")
    R OAuth(@RequestBody OAuthResTo oAuthResTo);
}
